package com.zzg.cloud.healthupload;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试服务状态上报
 */
@RestController
@RequestMapping("/health")
public class ActuatorController {
    public static Boolean myHealthFlag = true;
    
    @GetMapping("/myHealth/{state}")
    public String myHealth(@PathVariable("state") Boolean state){
        myHealthFlag = state;
        return "设置状态为："+  state;
    }
}
